package com.itheima.servlets.domain;

import java.io.Serializable;

/*
    封装实体类
 */
public class Student implements Serializable {
    private String name;    //姓名
    private int age;            //年龄
    private int math;           //数学成绩

    public String getName() {
        return name;
    }

    public void setName(String username) {
        this.name = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getMath() {
        return math;
    }

    public void setMath(int math) {
        this.math = math;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", math=" + math +
                '}';
    }
}
